<template>
    <page-body >
        <view class="page" >
    <view class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex changePayPwd_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-stretch justify-between changePayPwd_fd0_0'      >
            <view   class='flex flex-wrap align-center changePayPwd_fd0_0_c0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  changePayPwd_fd0_0_c0_c0'  >&#xe794;</text>
</view>
    <view   class='flex flex-wrap align-center'      >
        <text class='changePayPwd_fd0_0_c1_c0'  >修改支付密码</text>
</view>
    <view   class='flex align-center justify-end changePayPwd_fd0_0_c2'      >
        </view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---修改支付密码菜单列表flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch changePayPwd_flex_1"    >
            <view   class='flex flex-wrap align-center justify-between changePayPwd_fd1_0'   @tap.stop="oldpswdFunc()"   >
        <text class='changePayPwd_fd1_0_c0'  >旧支付密码验证修改</text>
<text class='fu-iconfont2  changePayPwd_fd1_0_c1'  >&#xE7F2;</text>
</view>
    <view   class='flex flex-wrap align-center justify-between changePayPwd_fd1_1'   @tap.stop="codepswdFunc()"   >
        <text class='changePayPwd_fd1_0_c0'  >手机号验证修改</text>
<text class='fu-iconfont2  changePayPwd_fd1_0_c1'  >&#xE7F2;</text>
</view>
</view>
        
<!---修改支付密码菜单列表flex布局结束-->
<benben-popup v-model="popupShow1686879428281" :mask="true" :mask-close-able="true"  mode='center' >
    <!---基础弹窗flex布局开始-->
 <view class="flex flex-direction flex-wrap align-center changePayPwd_flex_2"    >
        <text class='changePayPwd_fd2_0'  >尚未设置支付密码？是否前往设置</text>
    <view   class='flex align-center'      >
        <button class='changePayPwd_fd2_1_c0'  @tap.stop="popupShow1686879428281=false"  >取消</button>
<button class='changePayPwd_fd2_1_c1'  @tap.stop="getShouchiFunc()"  >确定</button>
</view>
</view>
        
<!---基础弹窗flex布局结束-->
    
</benben-popup>
    
    
        </view>
    </page-body>
</template>
<script>
    import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        
        
        data(){
			return {"popupShow1686879428281":false,"dataMessage":{"falg":""},"dataUserInfo":{"invite_code":"","address":"","address_code":"","hobby":"","tags":"","id":"","userlevel_id":"","mobile":"","real_name":"","avatar":"","account":"","email":"","birthday":"","gender":"","create_time":"","user_money":"","freeze_money":"","total_consumption_money":"","score":"","_mobile":"","coupon":"","collection_count":"","browse_count":"","total_money":"","certified":"","nickname":"","is_pay_password":"","follow_count":"","is_close":"","lastid":"","userlevel_name":""}};
		},
		computed:{
            
		},
		watch:{},
		onLoad(options){
            
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            this.getMessageFunc()
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //旧密码修改支付密码
                 oldpswdFunc(){
                        if( this.dataUserInfo.is_pay_password=='1'){
            this.$urouter.navigateTo(`/pages/xtsz/changePayPwdOldCode/changePayPwdOldCode?type=1`);
    }
    else{
            this.popupShow1686879428281 = true;
    }
                },
                //验证码修改支付密码
                 codepswdFunc(){
                        if( this.dataUserInfo.is_pay_password=='1'){
            this.$urouter.navigateTo(`/pages/xtsz/changePayPwdMessageCode/changePayPwdMessageCode`);
    }
    else{
            this.popupShow1686879428281 = true;
    }
                },
                //订单支付-检测支付密码
                async getMessageFunc(){
                        //请求方法
    //数据验证
    
  let datadataUserInfo = await this.$api.get(global.apiUrls.post5c78c4772da97, {
    
  });
  
  if (datadataUserInfo.data.code != 1) {
    this.$message.info(datadataUserInfo.data.msg);
    return
  } 
  let infodataUserInfo = datadataUserInfo.data;
  this.dataUserInfo = infodataUserInfo.data
  
                },
                //跳转首次设置支付密码
                 getShouchiFunc(){
                        this.popupShow1686879428281 = false;
    this.$urouter.navigateTo(`/pages/xtsz/payment/payment`);
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:#F8F8F8;background-size: 100% auto;
        }
    .changePayPwd_flex_0{
        border-bottom:1px solid #eee;background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .changePayPwd_fd0_0_c2{
        padding:0rpx 0rpx 0rpx 0rpx;width:100rpx;
    }
    .changePayPwd_fd0_0_c1_c0{
        font-size:36rpx;font-weight:500;color:var(--benbenFontColor0);line-height:50rpx;
    }
    .changePayPwd_fd0_0_c0_c0{
        font-size:36rpx;font-weight:400;color:#333;
    }
    .changePayPwd_fd0_0_c0{
        width:100rpx;
    }
    .changePayPwd_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;line-height:88rpx;
    }
    .changePayPwd_flex_1{
        background:#fff;font-size:32rpx;background-size:100% auto !important;padding:0rpx 32rpx 0rpx 32rpx;
    }
    .changePayPwd_fd1_1{
        padding:32rpx 0rpx 32rpx 0rpx;
    }
    .changePayPwd_fd1_0_c1{
        font-size:26rpx;color:rgba(191, 191, 191, 1);font-weight:400;
    }
    .changePayPwd_fd1_0_c0{
        font-size:32rpx;font-weight:400;color:var(--benbenFontColor0);
    }
    .changePayPwd_fd1_0{
        border-bottom:1px solid #eee;padding:32rpx 0rpx 32rpx 0rpx;
    }
    .changePayPwd_flex_2{
        background:#fff;width:540rpx;border-radius:16rpx 16rpx 16rpx 16rpx;
    }
    .changePayPwd_fd2_1_c1{
        border-top:1px solid #eee;border-left:1px solid #eee;background:#fff;line-height:94rpx;border-radius:0rpx 0rpx 16rpx 0rpx;font-size:32rpx;color:var(--benbenFontColor5);padding:0rpx 103rpx 0rpx 101rpx;font-weight:500;
    }
    .changePayPwd_fd2_1_c0{
        border-top:1px solid #eee;background:#fff;line-height:94rpx;border-radius:0rpx 0rpx 0rpx 16rpx;font-size:32rpx;color:rgba(153, 153, 153, 1);padding:0rpx 102rpx 0rpx 103rpx;font-weight:400;
    }
    .changePayPwd_fd2_0{
        line-height:44rpx;font-size:32rpx;font-weight:500;color:#333333;margin:91rpx 0rpx 88rpx 0rpx;width:350rpx;text-align:center;
    }
</style>